package day03;

public class OperDemo {
    public static void main(String[] args) {
/*        int a = 5,b = 5;
             a++;
             ++b;
                System.out.println(a);
               System.out.println(b);
        int c = 5, d = 5;
            c--;
            --d;
                   System.out.println(c);
                   System.out.println(d);
                   a++;
                   c--;
        System.out.println(a);
        System.out.println(c);
 */
   /*     int a= 5,b =5;
        int c = a++;
        int d = ++b;
        System.out.println(a);//6
        System.out.println(b);//6
        System.out.println(c);//5
        System.out.println(d);//6
        int aa= 5, bb = 5;
        int cc =aa++;
        int dd = ++bb;
        System.out.println(aa);//6
        System.out.println(bb);//6
        System.out.println(cc);//5
        System.out.println(dd);//6
                int aaa= 5,bbb=5;
                int ccc= aaa--;
                int ddd= --bbb;
        System.out.println(aaa);
        System.out.println(bbb);
        System.out.println(ccc);
        System.out.println(ddd);
        int q= 5,w= 5;
        int e= q--;
        int r= --w;
        System.out.println(q);
        System.out.println(w);
        System.out.println(e);
        System.out.println(r);
    */
        /*
        int a =5, b = 10, c = 5;
        boolean a1 = a>5;//fales
        System.out.println(a1);
        System.out.println(a--<c);//fales  a=4
        System.out.println(a+c==b);//fales
        System.out.println(a--==c--);//fales
        System.out.println(a==c);//fales
        System.out.println(a==b-6);//fales
        System.out.println(a==b--);//fales
        System.out.println(++a==++b);//fales
        System.out.println(a);
        System.out.println(b);
         */
//        int a= 5,b=10,c=5;
//        System.out.println(a>=b && c==5);//fales
//        System.out.println(b<=a+c && b>=a+5);//true
//        int age = 25;
//        System.out.println(age<= 27 && age>=20);//true
//        System.out.println(age>= 20 && age<=25);//true
//        System.out.println(age>=20 && age<23);//fales
//
//        System.out.println(a>=b || c==5);//真
//        System.out.println(!(a==c));//jia
//        System.out.println(a>b || c<a);//jia
//        System.out.println(a==b && a<b || a==b);//fales
//        System.out.println(a+c>b || a*2==b && a+b==b);//
//
/*
int a = 5;
a += 10 ;//相当于a=(int )(a+10)
        System.out.println(a );
a *=10 ;
        System.out.println(a);
a -=10;
        System.out.println(a);
a /=4;
        System.out.println(a);
        short  s = 5;
s = (short) (s+10);
s +=10;//同上

int age = 22;
String name = "李智恩";
int shengao = 183;
int tizhon = 125;
long V = 2827798204L;
        System.out.println("大家好，我是"+name+"，今年"+age+"周岁了，"+"我身高"+shengao+"，体重是"+tizhon+"，小绿泡是"+V);
  */
        int a =3,b=5;
        int flag = a+b>0 ?a:b;
        System.out.println(flag);
        int s =10,n=99;
        int max = s>n ?s : n;
        System.out.println("max="+max);
    }
}
